package com.wugh.fast.demo.service;

import com.wugh.fast.demo.mapper.UserMapper;
import com.wugh.fast.demo.model.UserDO;
import com.wugh.fast.module.api.bo.BasePageQueryBO;
import com.wugh.fast.module.api.vo.PageQueryResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 说明:
 *
 * @author wugh
 * @date 2019-11-20 16:41
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public PageQueryResultVO<UserDO> selectByQuery(BasePageQueryBO queryBO) {
        return userMapper.pageSelect(() -> userMapper.selectAll(), queryBO);
    }
}
